import { Component } from '@angular/core';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzMessageModule, NzMessageService } from 'ng-zorro-antd/message';

@Component({
  selector: 'app-message-info-demo',
  standalone: true,
  imports: [NzMessageModule, NzButtonModule],
  templateUrl: './message-info-demo.component.html',
  styleUrl: './message-info-demo.component.less',
})
export class MessageInfoDemoComponent {
  constructor(private _messageService: NzMessageService) {}

  showMessage() {
    this._messageService.info('This is a normal message!');
  }
}
